home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Moscow ML 1.42 / src / test / test8.sml < prev    next >
Encoding:
Text File  |  1997-08-18  |  220 b   |  11 lines  |  [TEXT/R*ch]

  1. datatype 'a arex =
  2.     ADD   of 'a binary
  3.   | SUB   of 'a binary
  4.   | MINUS of 'a unary
  5.   | TIP   of 'a
  6. withtype 'a binary = 'a arex * 'a arex
  7.      and 'a unary = 'a arex
  8. ;
  9.  
  10. val a1 = MINUS(ADD(TIP 1, SUB(TIP 2, TIP 5)));
  11.